<?php session_start();

//ENDS SESSION AND RETURNS USER TO LOGIN.PHP
	include("db.php");
	dbConnect('kar_web1');

$volunteerID = $_SESSION['volunteerID'];
setcookie(session_name(), '', time()-180000, '/');
session_unregister("volunteerID");
unset($_SESSION['volunteerID']);
unset($_SESSION['stamp']);
unset($_SESSION['name']);
unset($_SESSION['board']);
unset($_SESSION['webteam']);
unset($_SESSION['catscreen']);
unset($_SESSION['dogscreen']);
unset($_SESSION['catfoster']);
unset($_SESSION['dogfoster']);
unset($_SERVER['PHP_AUTH_USER']);
unset($volunteerID);
session_destroy();
?>

<script type="text/javascript">
window.parent.location.href = "login.php";
</script>

